<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/includedTag.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<%@page import="java.util.List"%>
<%@page import="com.drugStorage.domain.BuyPlan"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style/css/screen.css">
<title>查看采购计划</title>

</head>
<body>

<h1>所有采购计划</h1>
<%
List<BuyPlan> list = (List<BuyPlan>) request.getAttribute("buyPlanList");
%>
<html:link action="/BuyPlan/ShowBuyPlan?method=GoAddBuyPlan">添加采购计划</html:link>
<br>
<br>
<display:table name="buyPlanList" id="buyPlanList" export="true"
	pagesize="4" class="table" requestURI="ShowBuyPlan.do">
	<display:column property="id" sortable="true" title="id   " />
	<display:column property="BPid" title="单号" />
	<display:column property="date" sortable="true" title="日期" />
	<display:column property="isChecked" title="是否审核" > </display:column>
	<display:column title="操作">
		<html:link
			action="/BuyPlan/ShowBuyPlan?method=getBuyLists&id=${buyPlanList.id}">显示详情</html:link>
	</display:column>
</display:table>

<h1>未审核的采购计划</h1>
<display:table name="buyPlanUnchecked" id="buyPlanUnchecked"
	export="true" pagesize="4" class="table" requestURI="ShowBuyPlan.do">
	<display:column property="id" sortable="true" title="id   " />
	<display:column property="BPid" title="单号" />
	<display:column property="date" sortable="true" title="日期" />
	<display:column property="isChecked" title="是否审核" />
	<display:column title="操作">
		<html:link
			action="/BuyPlan/ShowBuyPlan?method=getBuyLists&id=${buyPlanUnchecked.id}">显示详情</html:link>
		<!--  <a href="CheckBuyPlan.do&id=${BuyPlanList.id}">审核</a>-->
		
		<html:link
			action="/BuyPlan/ShowBuyPlan?method=CheckBuyPlan&id=${buyPlanUnchecked.id}">审核</html:link>
			<html:link action="/BuyPlan/ShowBuyPlan?method=GoAddBuyList&id=${buyPlanUnchecked.id}">添加药品列表</html:link>
	</display:column>
</display:table>

</body>
</html>